﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            UDisk u1 = new UDisk("金士顿64G");
            u1.Read();
            u1.Write();

            Console.WriteLine();

            MobileHardDisk m1 = new MobileHardDisk("三星500G");
            m1.Read();
            m1.Write();

            Console.WriteLine();

            Computer lenove = new Computer("联想");
            lenove.Start();
            lenove.Usb1 = u1;
            lenove.Usb2 = m1;

            lenove.ReadData();
            lenove.WriteData();

            lenove.End();
          
    }
}
